import { createRouter, createWebHashHistory } from 'vue-router'
import ProductionView from '../views/ProductionView.vue'
import LauncherView from '../views/LauncherView.vue'
import AllProductionView from '../views/AllProductionView.vue'

const routes = [
  {
    path: '/',
    name: 'Launcher',
    component: LauncherView
  },
  {
    path: '/lines/CPT',
    name: 'CPT',
    component: ProductionView,
    props: { lineGroup: 'CPT' }
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router